/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.dealer.entity.ViAgenterWithLevel;
import com.vivo.dealer.dao.ViAgenterWithLevelDao;

/**
 * 代理商信息Service
 * @author jyangye
 * @version 2018-02-12
 */
@Service
@Transactional(readOnly = true)
public class ViAgenterWithLevelService extends CrudService<ViAgenterWithLevelDao, ViAgenterWithLevel> {

    @Autowired
    private ViAgenterWithLevelDao viAgenterWithLevelDao;

	public ViAgenterWithLevel get(String id) {
		return super.get(id);
	}
	
	public List<ViAgenterWithLevel> findList(ViAgenterWithLevel viAgenterWithLevel) {
		return super.findList(viAgenterWithLevel);
	}

	public List<ViAgenterWithLevel> findListExt() {
		return viAgenterWithLevelDao.findListExt();
	}
	
	public Page<ViAgenterWithLevel> findPage(Page<ViAgenterWithLevel> page, ViAgenterWithLevel viAgenterWithLevel) {
		return super.findPage(page, viAgenterWithLevel);
	}
	
	@Transactional(readOnly = false)
	public void save(ViAgenterWithLevel viAgenterWithLevel) {
		super.save(viAgenterWithLevel);
	}
	
	@Transactional(readOnly = false)
	public void delete(ViAgenterWithLevel viAgenterWithLevel) {
		super.delete(viAgenterWithLevel);
	}

	@Transactional
    public void deleteAll(ViAgenterWithLevel viAgenterWithLevel) {
	    viAgenterWithLevelDao.deleteAll(viAgenterWithLevel);
    }
	
}